package cn.fql.org.mapper;

import cn.fql.basic.mapper.BaseMapper;
import cn.fql.org.domain.Employee;
import cn.fql.system.domain.Menu;

import java.util.List;


public interface EmployeeMapper extends BaseMapper<Employee> {

    void addRole(Employee employee);

    void delEmployeeRoleByEmployeeId(Long id);

    //查询当前登录人的权限 - 只需要查询sn
    //前端自定义Vue指令只需要sn
    List<String> getPermissionByLogininfoId(Long logininfoId);

    //查询当前登录人的菜单
    //要查询二级菜单及其一级菜单 - 要做动态菜单
    List<Menu> getMenusByLogininfoId(Long logininfoId);

    Employee findByLogininfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}
